def test():
    try:
        f1()
    except Exception as e:
        print(F'出现异常了👉{e}')


def f1():
    print('f1开始')
    f2()
    print('f1结束')


def f2():
    print('f2开始')
    r = 1 / 0
    print('f2结束')


test()
